asp.net mvc get current url in view

43

asp.net mvc get current url in view -

// Use the HttpRequest.Url.PathAndQuery Property to retrieve the absolute path and query like so:
<%= Request.Url.PathAndQuery %>

Comments

Submit
0 Comments